home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13692 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  44 lines

  1. Newsgroups: comp.lang.c
  2. Path: newsfeed.acns.nwu.edu!ftpbox!mothost!schbbs!mmsilcc!nagac
  3. From: nagac@mmsilcc.NoSubdomain.NoDomain (Naga Challa)
  4. Subject: Reading Randon access filesHello all:
  5. Organization: MOTOROLA 
  6. Date: Tue, 9 Apr 1996 20:53:26 GMT
  7. Message-ID: <1996Apr9.205326.15942@schbbs.mot.com>
  8. Sender: nagac@mmsilcc (Naga Challa)
  9. Nntp-Posting-Host: 199.2.41.37
  10.  
  11. I am having problem to read random access file written using
  12. fortran structure using c.
  13.  
  14. Fortran structure would look like this:
  15.  
  16. BOX_KEY INT(4)
  17. BOX_HEAD INT(4)
  18. ..
  19. ..
  20. BOX_RECORD_TYPE CHAR(1)
  21. ...
  22. ..
  23. BOX_SPARES INT(4*15)
  24.  
  25. How can I read this kind of fortran structure, written in random access
  26. file, using c.
  27.  
  28. How can the above integer variables can be declared in c?
  29.  
  30. Anybody has done this before? 
  31. Thanks in advance for your input.
  32. P.S: You might have a problem to send direct reply to this mail,'coz
  33.     my header would be empty. if you are kind enough please
  34.     send mail to:challa@cs.wmich.edu or please post it to the
  35.     news group.
  36.  
  37. Naga Challa
  38.  
  39.  
  40.  
  41.  
  42. Keywords: 
  43.  
  44.